WP2FA\Authenticator\Authentication A

Total Complexity 61
Dependencies 8
Dependents 6
Total lines 605
Lines of code 268
Logical lines of code 148
Comment lines 238
Methods 23
Properties 4

Methods 23

Method Rating Maintainability Complexity Lines of code
get_user_totp_key()
A
49 8 31
base32_decode()
S
54 4 20
base32_encode()
S
58 4 15
pack64()
S
58 4 14
decrypt_key_if_needed()
S
63 4 10
is_valid_authcode()
S
57 3 15
validate_token()
S
60 3 12
get_apps()
S
49 1 39
calc_totp()
S
56 2 16
get_code()
S
63 3 10
generate_salt()
S
67 3 7
abssort()
S
66 3 8
get_user_token()
S
68 3 7
get_google_qr_code()
S
59 2 13
user_has_token()
S
67 2 8
generate_key()
S
64 2 9
validate_base32_string()
S
69 2 6
is_valid_key()
S
66 2 8
get_login_attempts_instance()
S
71 2 6
delete_token()
S
80 1 3
generate_token()
S
72 1 5
get_base32_characters()
S
80 1 3
check_number_of_attempts()
S
79 1 3